<?php @session_start();?>
<?php
require_once('./safe.php');
require_once('../admin/config.php');
$conn = mysql_connect($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd);
mysql_select_db($cfg_dbname,$conn);

$app_id=$_REQUEST["app_id"];
if(!empty($app_id)){

$sql = "delete from ph_myapp where ID =".$app_id;
mysql_query($sql,$conn);
$sql = "delete from ph_keywords where app_name =".$app_id;
mysql_query($sql,$conn);

header("Content-type:application/json");
echo "{\"status\":true,\"errors\":[\"0\"]}";
exit;
}else{
    header('Content-type:text/json');
    echo "{\"status\":false,\"errors\":[\"Didn't find a match on the package name, or could not fetch the App information\"]}";
    
    exit;
}


?>